import request from '@/utils/request'
import { renderUrl } from '../utils'

const headers = {
  'Content-Type': 'application/json'
}

export function getRoleList() {
  return request({
    url: '/admin/role/list',
    method: 'POST',
    headers
  })
}

export function getRoleAllList(data) {
  return request({
    url: '/admin/role/getRole',
    method: 'POST',
    headers,
    data
  })
}
